<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>上架报告管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $("#btnExport").click(function(){
                top.$.jBox.confirm("确认要导出上架信息吗？","系统提示",function(v,h,f){
                    if(v=="ok"){
                        $("#searchForm").attr("action","${ctx}/shelvesreport/shelvesReport/export");
                        $("#searchForm").submit();
                    }
                },{buttonsFocus:1});
                top.$('.jbox-body .jbox-icon').css('top','55px');
            });
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/shelvesreport/shelvesReport/">上架报告列表</a></li>
		<%--<shiro:hasPermission name="shelvesreport:shelvesReport:edit"><li><%--<a href="${ctx}/shelvesreport/shelvesReport/form">上架报告添加</a></li></shiro:hasPermission>--%>
	</ul>
	<form:form id="searchForm" modelAttribute="shelvesReport" action="${ctx}/shelvesreport/shelvesReport/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>订单号：</label>
				<form:input path="winitOrderNo" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>仓库名称：</label>
			<%--	<sys:treeselect id="office" name="office.id"    value="${office.id}" labelName="office.name" labelValue="${office.name}"
								title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
--%>
				<sys:treeselect id="office" name="office.id" value="${shelvesReport.office.id}" labelName="office.name" labelValue="${shelvesReport.office.name}"
								title="部门" url="/sys/office/treeData?type=2" cssClass="" allowClear="true" notAllowSelectParent="true"/>
				<%--<form:input path="warhoseName" htmlEscape="false" maxlength="255" class="input-medium"/>--%>
			</li>
			<%--<li><label>订单目标上架日期：</label>
				<input name="orderTargetShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${shelvesReport.orderTargetShelvesTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>

			</li>--%>
			<li> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否过滤已上架：<form:checkbox path="isFilerShelved" value="Y" /> </li>
			<%--<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>--%>
			<li><label>确认到仓：</label>
				<input name="startActuEntryWarhousenameTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.startActuEntryWarhousenameTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
				到
				<input name="endActuEntryWarhousenameTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.endActuEntryWarhousenameTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>

			<li><label>计划上架：</label>
				<input name="startWarhousePlanShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.startWarhousePlanShelvesTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>

				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;到
				<input name="endWarhousePlanShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.endWarhousePlanShelvesTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
				</li>
			<li>
				<label>实际上架：</label>
				<input name="startAcuShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.startAcuShelvesTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
				到
				<input name="endAcuShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${shelvesReport.endAcuShelvesTime}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>
		<%--	<li><label>实际上架：</label>
				<input name="acuShelvesTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${shelvesReport.acuShelvesTime}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>--%>
		<%--	<li><label>修改日期：</label>
				<input name="updateDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${shelvesReport.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>--%>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				<input id="btnExport" class="btn btn-primary" type="button" value="导出"/></li>

			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>订单号</th>
				<th>仓库名称</th>
				<th>winit产品</th>
				<th>仓库计划上架日期</th>
				<th>订单目标上架日期</th>
				<th>预计包裹数</th>
				<th>实际包裹数</th>
				<th>确认到仓时间</th>
				<%--<th>预计商品数</th>
				<th>实际商品数</th>
				<th>预计单品数</th>
				<th>实际单品数</th>--%>

				<th>实际上架完成日期</th>
				<th>超时上架</th>
				<%--<th>修改日期</th>--%>
				<th>备注</th>
				<%--<th>删除标记</th>--%>
				<shiro:hasPermission name="shelvesreport:shelvesReport:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="shelvesReport" varStatus="index">
			<tr>
				<td><a href="${ctx}/shelvesreport/shelvesReport/form?id=${shelvesReport.id}">
						${shelvesReport.winitOrderNo}
				</a></td>
				<td>
					<%--${shelvesReport.warhoseName}--%>
							${shelvesReport.office.name}
				</td>
				<td>
						${shelvesReport.winitProductName}
				</td>
				<td>
					<fmt:formatDate value="${shelvesReport.warhousePlanShelvesTime}" pattern="yyyy-MM-dd"/>

				</td>
				<td>
					<fmt:formatDate value="${shelvesReport.orderTargetShelvesTime}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
						${shelvesReport.packageQty}
				</td>
				<td>
					${shelvesReport.actuPackageQty}
				</td>
			<%--	<td>
					${shelvesReport.productQty}
				</td>
				<td>
					${shelvesReport.actuProductQty}
				</td>
				<td>
					${shelvesReport.itemQty}
				</td>
				<td>
					${shelvesReport.actuItemQty}
				</td>--%>
				<td>
					<fmt:formatDate value="${shelvesReport.actuEntryWarhousenameTime}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					<fmt:formatDate value="${shelvesReport.acuShelvesTime}" pattern="yyyy-MM-dd"/>
				</td>
				<td>${shelvesReport.timeOut}</td>
				<%--<td>
					<fmt:formatDate value="${shelvesReport.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>--%>
				<td>
					${shelvesReport.remarks}
				</td>
			<%--	<td>
					${fns:getDictLabel(shelvesReport.delFlag, 'del_flag', '')}
				</td>--%>
				<shiro:hasPermission name="shelvesreport:shelvesReport:edit"><td>
    				<a href="${ctx}/shelvesreport/shelvesReport/form?id=${shelvesReport.id}">修改</a>
					<a href="${ctx}/shelvesreport/shelvesReport/delete?id=${shelvesReport.id}" onclick="return confirmx('确认要删除该上架报告吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>